package com.bean.annotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AnnotationLoaderTest {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("annotationContext.xml");

        UserController userController = (UserController) context.getBean("userController");
        userController.saveUser();
    }
}
